import myaxios from  '@/mytools/myaxios'
export function VMenuCode(wmc) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/WebSystemMenuManager/VMenuCode',
      method: 'get',
      params: { wmc: wmc },
    })
  }
  

  export function GetWebSystemMenuViewsAll() {
    return myaxios({
      //http://localhost:55117/api/SystemManager/WebSystemMenuManager​/GetWebSystemMenuViewByCode?wmc=identity
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: '/SystemManager/WebSystemMenuManager/GetWebSystemMenuViewsAll',
      method: 'get'
    })
  }

  export function GetModuleDtosAll() {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/WebSystemMenuManager/GetModuleDbsAll',
      method: 'get',
    })
  }

  export function GetWebSystemMenuViewByCode(wMCode) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
       //http://localhost:55117/api/SystemManager/WebSystemMenuManager%E2%80%8B/GetWebSystemMenuViewByCode?wMCode=customer_manager
      url: 'SystemManager/WebSystemMenuManager/GetWebSystemMenuViewByCode',
      method: 'get',
      params: {wMCode:wMCode},
    })
  }

  export function WSMAdd(menuInfo) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
     
      url: 'SystemManager/WebSystemMenuManager/WSMAdd',
      method: 'post',
      data: menuInfo,
    })
  }


  export function WebSystemMenuUpdate(menuInfo) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: 'SystemManager/WebSystemMenuManager/WebSystemMenuUpdate',
      method: 'post',
      data: menuInfo,
    })
  }

  
  export function WebSystemMenuDelete(wmcode) {
    return myaxios({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      //http://localhost:55117/api/SystemManager/WebSystemMenuManager/WebSystemMenuDelete?wmcode=123
      url: 'SystemManager/WebSystemMenuManager/WebSystemMenuDelete?wmcode='+wmcode,
      method: 'post',
     // data: wmcode,
    })
  }